#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_059;

TEST_CASE("059_spiral_matrix_ii", "[059]") {
    CHECK(Solution().generateMatrix(3) == std::vector< std::vector<int> >{{1,2,3},{8,9,4},{7,6,5}});
    CHECK(Solution().generateMatrix(2) == std::vector< std::vector<int> >{{1,2},{4,3}});
    CHECK(Solution().generateMatrix(1) == std::vector< std::vector<int> >{{1}});
}
